namespace abilities.triggers
{
    public class AbilityTriggerOnDeath : AbilityTrigger
    {
        bool enabled;
        
        public override void Start()
        {
            enabled = true;
        }

        public override void Stop()
        {
            enabled = false;
        }


        public override bool ActivateTrigger(AbilityTriggerType triggerType)
        {
            if (enabled && triggerType == TriggerType)
            {
                return OnPerform();
            }
            else
            {
                return false;
            }
        }
    }
}